﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CarPolicy
/// </summary>
namespace CE.CarInsurance
{
    public class CarPolicy
    {
        public CarPolicy()
        {
            ClearFields();
        }

        private Int64 _cecarpolicyid;
        private Int64 _cecarid;

        private int _insurancetype;
        private int _garagetype;
        private int _vehicletype;
        private int _suminsured;
        private string _provinceregistration;
        private string _useofvehicle;
        private DateTime _coveragecommencedate;
        private int _ncdpercent;
        private bool _isclaimlastyear;
        private bool _isadddriver;
        private bool _isredplate;
        private bool _isaddaccmod;
        private int _addaccmodamount;
        private bool _isctpl;
        private int _noofdriver;
        private int _deductible;
        private string _currentinsurer;
        private Int64 _refceuserid;
        private int _currentstep;
        private Int64 _vieweddetailid;
        //common field name
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;

        private Int64 _ninfo1;
        private Int32 _ninfo5;
        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;
        private string _info6;
        private string _info7;
        private string _info8;
        private string _info9;
        private string _info10;
        private string _info11;
        private string _info12;
        private string _info13;
        private string _info14;
        private string _info15;
        private string _info16;
        private string _info17;
        private string _info18;
        private string _info19;
        private string _info20;

        private string _product;

        public Int64 CECarPolicyId
        {
            get { return _cecarpolicyid; }
            set { _cecarpolicyid = value; }
        }

        public Int64 CECarId
        {
            get { return _cecarid; }
            set { _cecarid = value; }
        }

        public int InsuranceType
        {
            get { return _insurancetype; }
            set { _insurancetype = value; }
        }

        public int GarageType
        {
            get { return _garagetype; }
            set { _garagetype = value; }
        }

        public int VehicleType
        {
            get { return _vehicletype; }
            set { _vehicletype = value; }
        }

        public int SumInsured
        {
            get { return _suminsured; }
            set { _suminsured = value; }
        }

        public string ProvinceRegistration
        {
            get { return _provinceregistration; }
            set { _provinceregistration = value; }
        }

        public string UseOfVehicle
        {
            get { return _useofvehicle; }
            set { _useofvehicle = value; }
        }

        public DateTime CoverageCommenceDate
        {
            get { return _coveragecommencedate; }
            set { _coveragecommencedate = value; }
        }

        public int NCDPercent
        {
            get { return _ncdpercent; }
            set { _ncdpercent = value; }
        }

        public bool IsClaimLastYear
        {
            get { return _isclaimlastyear; }
            set { _isclaimlastyear = value; }
        }

        public bool IsAddDriver
        {
            get { return _isadddriver; }
            set { _isadddriver = value; }
        }

        public bool IsRedPlate
        {
            get { return _isredplate; }
            set { _isredplate = value; }
        }

        public bool IsAddAccMod
        {
            get { return _isaddaccmod; }
            set { _isaddaccmod = value; }
        }

        public int AddAccModAmount
        {
            get { return _addaccmodamount; }
            set { _addaccmodamount = value; }
        }

        public bool IsCTPL
        {
            get { return _isctpl; }
            set { _isctpl = value; }
        }

        public int NoOfDriver
        {
            get { return _noofdriver; }
            set { _noofdriver = value; }
        }

        public int Deductible
        {
            get { return _deductible; }
            set { _deductible = value; }
        }

        public string CurrentInsurer
        {
            get { return _currentinsurer; }
            set { _currentinsurer = value; }
        }

        public Int64 RefCEUserId
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public int CurrentStep
        {
            get { return _currentstep; }
            set { _currentstep = value; }
        }

        public Int64 ViewedDetailId
        {
            get { return _vieweddetailid; }
            set { _vieweddetailid = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public Int64 NInfo1
        {
            get { return _ninfo1; }
            set { _ninfo1 = value; }
        }

        public Int32 NInfo5
        {
            get { return _ninfo5; }
            set { _ninfo5 = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string Info3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string Info4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string Info5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public string Info6
        {
            get { return _info6; }
            set { _info6 = value; }
        }

        public string Info7
        {
            get { return _info7; }
            set { _info7 = value; }
        }

        public string Info8
        {
            get { return _info8; }
            set { _info8 = value; }
        }

        public string Info9
        {
            get { return _info9; }
            set { _info9 = value; }
        }

        public string Info10
        {
            get { return _info10; }
            set { _info10 = value; }
        }

        public string Info11
        {
            get { return _info11; }
            set { _info11 = value; }
        }

        public string Info12
        {
            get { return _info12; }
            set { _info12 = value; }
        }
        
        public string Info13
        {
            get { return _info13; }
            set { _info13 = value; }
        }

        public string Info14
        {
            get { return _info14; }
            set { _info14 = value; }
        }

        public string Info15
        {
            get { return _info15; }
            set { _info15 = value; }
        }

        public string Info16
        {
            get { return _info16; }
            set { _info16 = value; }
        }

        public string Info17
        {
            get { return _info17; }
            set { _info17 = value; }
        }

        public string Info18
        {
            get { return _info18; }
            set { _info18 = value; }
        }

        public string Info19
        {
            get { return _info19; }
            set { _info19 = value; }
        }

        public string Info20
        {
            get { return _info20; }
            set { _info20 = value; }
        }

        public string Product
        {
            get { return _product; }
            set { _product = value; }
        }

        public void ClearFields()
        {
            _cecarpolicyid = 0;
            _cecarid = 0;
            _insurancetype = 0;
            _garagetype = 0;
            _vehicletype = 0;
            _suminsured = 0;
            _provinceregistration = "";
            _useofvehicle = "";
            _coveragecommencedate = new DateTime();
            _ncdpercent = 0;
            _isclaimlastyear = false;
            _isredplate = false;
            _isaddaccmod = false;
            _addaccmodamount = 0;
            _isadddriver = false;
            _isctpl = false;
            _noofdriver = 0;
            _deductible = 0;
            _currentinsurer = "";
            _refceuserid = 0;
            _currentstep = 0;
            _vieweddetailid = 0;
            //common field name
            _status = true;
            _createddate = new DateTime();
            _modifieddate = new DateTime();

            //extra field for future extend
            _ninfo1 = 0;
            _ninfo5 = 0;
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
            _info6 = "";
            _info7 = "";
            _info8 = "";
            _info9 = "";
            _info10 = "";
            _info11 = "";
            _info12 = "";
            _info13 = "";
            _info14 = "";
            _info15 = "";
            _info16 = "";
            _info17 = "";
            _info18 = "";
            _info19 = "";
            _info20 = "";

            _product = "";
        }

    }
}